home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / INPUT / MON_FOCU.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.6 KB  |  57 lines

  1. /*
  2.  * $Id: mon_focus_policy_class.java,v 1.7 1996/10/03 19:44:17 hudson Exp $
  3.  * $Author: hudson $
  4.  */
  5.  
  6. package sub_arctic.input;
  7.  
  8. import sub_arctic.lib.manager;
  9.  
  10. public class mon_focus_policy_class extends focus_policy_class {
  11.  
  12.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  13.  
  14.   public mon_focus_policy_class()
  15.     {
  16.       /* nothing extra to do here */
  17.     }
  18.  
  19.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  20.  
  21.   public boolean dispatch_event(event evt)
  22.     {
  23.       dispatch_agent an_agent;
  24.  
  25.       /* walk down the agent list */
  26.       for (int i = 0; i < num_agents(); i++)
  27.     {
  28.       /* dispatch with the agent, but ignore the result. */
  29.       an_agent = (dispatch_agent)_agent_list.elementAt(i);
  30.       if (an_agent.event_is_useful(evt))
  31.         an_agent.dispatch_event(evt, null, null, manager.event_seq_num());
  32.     }
  33.  
  34.       /* never consume the event */
  35.       return false;
  36.     }
  37.  
  38.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  39. }
  40.  
  41. /*=========================== COPYRIGHT NOTICE ===========================
  42.  
  43. This file is part of the subArctic user interface toolkit.
  44.  
  45. Copyright (c) 1996 Scott Hudson and Ian Smith
  46. All rights reserved.
  47.  
  48. The subArctic system is freely available for most uses under the terms
  49. and conditions described in 
  50.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  51. and appearing in full in the lib/interactor.java source file.
  52.  
  53. The current release and additional information about this software can be 
  54. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  55.  
  56. ========================================================================*/
  57.